package cn.zhang.service;

import javax.annotation.Resource;

import org.springframework.transaction.annotation.Transactional;

import cn.zhang.dao.PhoneDao;

@Transactional
//@Component(value="phoneService")
public class PhoneService {

	@Resource(name="phoneDaoImpl")
	private PhoneDao phoneDao;
	public void setPhoneDao(PhoneDao phoneDao) {
		this.phoneDao = phoneDao;
	}
	
	public void add(){
		phoneDao.add();
	}
	
}
